package com.centit.jksxgl.po;

import java.util.Date;
import java.sql.Timestamp;
import javax.persistence.Column;


import javax.persistence.Id;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;


import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;


/**
 * create by scaffold 2020-03-10 
 * @author codefan@sina.com
 
  T_JDDT_JKSXGL【监控事项管理表】监控事项管理表   
*/
@Entity
@Table(name = "T_JDDT_JKSXGL")
public class JddtJksxgl implements java.io.Serializable {
	private static final long serialVersionUID =  1L;



	/**
	 * REC_ID【主键】 主键 
	 */
	@Id
	@Column(name = "REC_ID")
	
	private String recId;

	/**
	 * SXNAME【事项名称】 事项名称 
	 */
	@Column(name = "SXNAME")
	@Length(min = 0, max = 500, message = "字段长度不能小于{min}大于{max}")
	private String  sxname;
	/**
	 * SXMS【事项描述】 事项描述 
	 */
	@Column(name = "SXMS")
	@Length(min = 0, max = 2000, message = "字段长度不能小于{min}大于{max}")
	private String  sxms;
	/**
	 * SXJKMETHOD【事项监控方法】 事项监控方法 
	 */
	@Column(name = "SXJKMETHOD")
	@Length(min = 0, max = 2000, message = "字段长度不能小于{min}大于{max}")
	private String  sxjkmethod;
	/**
	 * DATA_VALID 数据有效性 T有效 F失效 
	 */
	@Column(name = "DATA_VALID")
	@Length(min = 0, max = 1, message = "字段长度不能小于{min}大于{max}")
	private String  dataValid;
	/**
	 * INS_USERCODE 录入者用户编码 
	 */
	@Column(name = "INS_USERCODE")
	@Length(min = 0, max = 32, message = "字段长度不能小于{min}大于{max}")
	private String  insUsercode;
	/**
	 * INS_TIME 录入时间 
	 */
	@Column(name = "INS_TIME")
	private Date  insTime;
	/**
	 * EDIT_USERCODE 编辑者用户编码 
	 */
	@Column(name = "EDIT_USERCODE")
	@Length(min = 0, max = 32, message = "字段长度不能小于{min}大于{max}")
	private String  editUsercode;
	/**
	 * EDIT_TIME 编辑时间 
	 */
	@Column(name = "EDIT_TIME")
	private Date  editTime;
	/**
	 * DEL_USERCODE 删除人用户编码 
	 */
	@Column(name = "DEL_USERCODE")
	@Length(min = 0, max = 32, message = "字段长度不能小于{min}大于{max}")
	private String  delUsercode;
	/**
	 * DEL_TIME 删除时间 
	 */
	@Column(name = "DEL_TIME")
	private Date  delTime;

	// Constructors
	/** default constructor */
	public JddtJksxgl() {
	}
	/** minimal constructor */
	public JddtJksxgl(
		String recId		
		) {
	
	
		this.recId = recId;		
			
	}

/** full constructor */
	public JddtJksxgl(
	 String recId		
	,String  sxname,String  sxms,String  sxjkmethod,String  dataValid,String  insUsercode,Date  insTime,String  editUsercode,Date  editTime,String  delUsercode,Date  delTime) {
	
	
		this.recId = recId;		
	
		this.sxname= sxname;
		this.sxms= sxms;
		this.sxjkmethod= sxjkmethod;
		this.dataValid= dataValid;
		this.insUsercode= insUsercode;
		this.insTime= insTime;
		this.editUsercode= editUsercode;
		this.editTime= editTime;
		this.delUsercode= delUsercode;
		this.delTime= delTime;		
	}
	

  
	public String getRecId() {
		return this.recId;
	}

	public void setRecId(String recId) {
		this.recId = recId;
	}
	// Property accessors
  
	public String getSxname() {
		return this.sxname;
	}
	
	public void setSxname(String sxname) {
		this.sxname = sxname;
	}
  
	public String getSxms() {
		return this.sxms;
	}
	
	public void setSxms(String sxms) {
		this.sxms = sxms;
	}
  
	public String getSxjkmethod() {
		return this.sxjkmethod;
	}
	
	public void setSxjkmethod(String sxjkmethod) {
		this.sxjkmethod = sxjkmethod;
	}
  
	public String getDataValid() {
		return this.dataValid;
	}
	
	public void setDataValid(String dataValid) {
		this.dataValid = dataValid;
	}
  
	public String getInsUsercode() {
		return this.insUsercode;
	}
	
	public void setInsUsercode(String insUsercode) {
		this.insUsercode = insUsercode;
	}
  
	public Date getInsTime() {
		return this.insTime;
	}
	
	public void setInsTime(Date insTime) {
		this.insTime = insTime;
	}
  
	public String getEditUsercode() {
		return this.editUsercode;
	}
	
	public void setEditUsercode(String editUsercode) {
		this.editUsercode = editUsercode;
	}
  
	public Date getEditTime() {
		return this.editTime;
	}
	
	public void setEditTime(Date editTime) {
		this.editTime = editTime;
	}
  
	public String getDelUsercode() {
		return this.delUsercode;
	}
	
	public void setDelUsercode(String delUsercode) {
		this.delUsercode = delUsercode;
	}
  
	public Date getDelTime() {
		return this.delTime;
	}
	
	public void setDelTime(Date delTime) {
		this.delTime = delTime;
	}



	public JddtJksxgl copy(JddtJksxgl other){
  
		this.setRecId(other.getRecId());
  
		this.sxname= other.getSxname();  
		this.sxms= other.getSxms();  
		this.sxjkmethod= other.getSxjkmethod();  
		this.dataValid= other.getDataValid();  
		this.insUsercode= other.getInsUsercode();  
		this.insTime= other.getInsTime();  
		this.editUsercode= other.getEditUsercode();  
		this.editTime= other.getEditTime();  
		this.delUsercode= other.getDelUsercode();  
		this.delTime= other.getDelTime();

		return this;
	}
	
	public JddtJksxgl copyNotNullProperty(JddtJksxgl other){
  
	if( other.getRecId() != null){
	this.setRecId(other.getRecId());}
  
		if( other.getSxname() != null){
		this.sxname= other.getSxname();}  
		if( other.getSxms() != null){
		this.sxms= other.getSxms();}  
		if( other.getSxjkmethod() != null){
		this.sxjkmethod= other.getSxjkmethod();}  
		if( other.getDataValid() != null){
		this.dataValid= other.getDataValid();}  
		if( other.getInsUsercode() != null){
		this.insUsercode= other.getInsUsercode();}  
		if( other.getInsTime() != null){
		this.insTime= other.getInsTime();}  
		if( other.getEditUsercode() != null){
		this.editUsercode= other.getEditUsercode();}  
		if( other.getEditTime() != null){
		this.editTime= other.getEditTime();}  
		if( other.getDelUsercode() != null){
		this.delUsercode= other.getDelUsercode();}  
		if( other.getDelTime() != null){
		this.delTime= other.getDelTime();}		

		return this;
	}

	public JddtJksxgl clearProperties(){
  
		this.sxname= null;  
		this.sxms= null;  
		this.sxjkmethod= null;  
		this.dataValid= null;  
		this.insUsercode= null;  
		this.insTime= null;  
		this.editUsercode= null;  
		this.editTime= null;  
		this.delUsercode= null;  
		this.delTime= null;

		return this;
	}
}
